﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Configuration;
using System.Data.SqlClient;
namespace Clinica_Frba
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            string origen = ConfigurationManager.AppSettings["origen"];
            string host = ConfigurationManager.AppSettings["host"];
            string usuario = ConfigurationManager.AppSettings["usuario"];
            string pass = ConfigurationManager.AppSettings["pass"];
            string nombre = ConfigurationManager.AppSettings["nombrebase"];
            string fecha = ConfigurationManager.AppSettings["fechainicio"];
            string ConnectionString = "Data Source=" + host + ";Initial Catalog=" + nombre + ";User id=" + usuario + ";Password=" + pass;
            SqlConnection con=new SqlConnection();
            publico.ConnectionString = ConnectionString;
            publico.fecha = fecha;

            new Clinica_Frba.NewFolder10.Form1().Show();

            this.Hide();


            }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

    }
}
